package com.java80.springmall.cloud.product.consumer.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.java80.springmall.cloud.product.consumer.entity.Product;
import com.java80.springmall.cloud.product.consumer.service.ProductService;

@RestController
public class ProductConsumerController {
	@Autowired
	private ProductService svc;
	@GetMapping("/product/findAll")
	public List<Product> findAll(){
		return svc.findAll();
	}
}
